package com.lst.quartz.job;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;

import java.time.LocalDateTime;

/**
 * @author shengtao
 * @Description:
 * @date 2018/12/13 10:35
 */
public class FirstElasticJob implements SimpleJob {
    @Override
    public void execute(ShardingContext shardingContext) {
        System.out.println("start My first Job B：" + LocalDateTime.now()+" time :"+ System.currentTimeMillis()/1000);
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("end  My first Job B：" + LocalDateTime.now()+" time :"+ System.currentTimeMillis()/1000);
    }
}
